package cn.ren.hai.base.entity;

import cn.ren.hai.core.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文件
 * </p>
 *
 * @author wangdao
 * @since 2022-01-07
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("rh_file")
@ApiModel(value="RhFile对象", description="文件")
public class RhFile extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "显示名称;显示名称只用作展示")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "全路径")
    @TableField("full_path")
    private String fullPath;

    @ApiModelProperty(value = "父级")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "文件夹")
    @TableField("folder")
    private boolean folder;

    @ApiModelProperty(value = "大小")
    @TableField("size")
    private Integer size;

}
